package com.scnb.Strategy;

public class Cat implements Comparable<Cat>{
    int weight, height;

    public Cat(int weight, int height){
        this.weight = weight;
        this.height = height;
    }

    @Override
    public String toString(){
        return "height = " + height + ", weight = " + weight;
    }

    @Override
    public int compareTo(Cat c) {
        if (this.height < c.height){
            return -1;
        }else if (this.height == c.height){
            return 0;
        }else{
            return 1;
        }
    }
}
